﻿
<template>
<div class="card-fill layout-padding">
<el-card shadow="hover" class="layout-padding-auto" >
  <WtmSearcher v-model="searchDataEquipmentTag" @search="()=>{getTableDataEquipmentTag();}">
      <el-row>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="EquipmentId_FormItem" prop="EquipmentId" :label="$t('message.autotrans._Model_EquipmentTag_Equipment')">
            <el-select v-model="searchDataEquipmentTag.EquipmentId" clearable>
               <el-option v-for="item in stateEquipmentTag.AllEquipments" :key="item.Value" :value="item.Value" :label="item.Text"></el-option>
            </el-select>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="EquipCode_FormItem" prop="EquipCode" :label="$t('message.autotrans._Model_EquipmentTag_EquipCode')">
            <el-input v-model="searchDataEquipmentTag.EquipCode" clearable></el-input>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="DriverType_FormItem" prop="DriverType" :label="$t('message.autotrans._Model_EquipmentTag_DriverType')">
            <el-select v-model="searchDataEquipmentTag.DriverType" clearable>
               <el-option key="OpcUa" value="OpcUa" :label="$t('message.autotrans._Enum_DriverTypeEnum_OpcUa')"></el-option>
               <el-option key="None" value="None" :label="$t('message.autotrans._Enum_DriverTypeEnum_None')"></el-option>
            </el-select>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="TagName_FormItem" prop="TagName" :label="$t('message.autotrans._Model_EquipmentTag_TagName')">
            <el-input v-model="searchDataEquipmentTag.TagName" clearable></el-input>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="Address_FormItem" prop="Address" :label="$t('message.autotrans._Model_EquipmentTag_Address')">
            <el-input v-model="searchDataEquipmentTag.Address" clearable></el-input>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="Description_FormItem" prop="Description" :label="$t('message.autotrans._Model_EquipmentTag_Description')">
            <el-input v-model="searchDataEquipmentTag.Description" clearable></el-input>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="TagType_FormItem" prop="TagType" :label="$t('message.autotrans._Model_EquipmentTag_TagType')">
            <el-select v-model="searchDataEquipmentTag.TagType" clearable>
               <el-option key="Alarm" value="Alarm" :label="$t('message.autotrans._Enum_TagDefineEnum_Alarm')"></el-option>
               <el-option key="Equipment_State" value="Equipment_State" :label="$t('message.autotrans._Enum_TagDefineEnum_Equipment_State')"></el-option>
               <el-option key="Equipment_Mode" value="Equipment_Mode" :label="$t('message.autotrans._Enum_TagDefineEnum_Equipment_Mode')"></el-option>
               <el-option key="Entry_Sign" value="Entry_Sign" :label="$t('message.autotrans._Enum_TagDefineEnum_Entry_Sign')"></el-option>
               <el-option key="Entry_SN" value="Entry_SN" :label="$t('message.autotrans._Enum_TagDefineEnum_Entry_SN')"></el-option>
               <el-option key="Entry_Formual" value="Entry_Formual" :label="$t('message.autotrans._Enum_TagDefineEnum_Entry_Formual')"></el-option>
               <el-option key="Entry_Rfid" value="Entry_Rfid" :label="$t('message.autotrans._Enum_TagDefineEnum_Entry_Rfid')"></el-option>
               <el-option key="Archive_Sign" value="Archive_Sign" :label="$t('message.autotrans._Enum_TagDefineEnum_Archive_Sign')"></el-option>
               <el-option key="Archive_SN" value="Archive_SN" :label="$t('message.autotrans._Enum_TagDefineEnum_Archive_SN')"></el-option>
               <el-option key="Archive_Status" value="Archive_Status" :label="$t('message.autotrans._Enum_TagDefineEnum_Archive_Status')"></el-option>
               <el-option key="Archive_Formual" value="Archive_Formual" :label="$t('message.autotrans._Enum_TagDefineEnum_Archive_Formual')"></el-option>
               <el-option key="Archive_Operator" value="Archive_Operator" :label="$t('message.autotrans._Enum_TagDefineEnum_Archive_Operator')"></el-option>
               <el-option key="Archive_Shift" value="Archive_Shift" :label="$t('message.autotrans._Enum_TagDefineEnum_Archive_Shift')"></el-option>
               <el-option key="Archive_Rfid" value="Archive_Rfid" :label="$t('message.autotrans._Enum_TagDefineEnum_Archive_Rfid')"></el-option>
               <el-option key="Archive_CycleTime" value="Archive_CycleTime" :label="$t('message.autotrans._Enum_TagDefineEnum_Archive_CycleTime')"></el-option>
               <el-option key="Scan_Sign" value="Scan_Sign" :label="$t('message.autotrans._Enum_TagDefineEnum_Scan_Sign')"></el-option>
               <el-option key="Scan_Barcode" value="Scan_Barcode" :label="$t('message.autotrans._Enum_TagDefineEnum_Scan_Barcode')"></el-option>
               <el-option key="Scan_Step" value="Scan_Step" :label="$t('message.autotrans._Enum_TagDefineEnum_Scan_Step')"></el-option>
               <el-option key="ScanBatch_Sign" value="ScanBatch_Sign" :label="$t('message.autotrans._Enum_TagDefineEnum_ScanBatch_Sign')"></el-option>
               <el-option key="ScanBatch_Formual" value="ScanBatch_Formual" :label="$t('message.autotrans._Enum_TagDefineEnum_ScanBatch_Formual')"></el-option>
               <el-option key="ScanBatch_01_Sign" value="ScanBatch_01_Sign" :label="$t('message.autotrans._Enum_TagDefineEnum_ScanBatch_01_Sign')"></el-option>
               <el-option key="ScanBatch_02_Sign" value="ScanBatch_02_Sign" :label="$t('message.autotrans._Enum_TagDefineEnum_ScanBatch_02_Sign')"></el-option>
               <el-option key="ScanBatch_Barcode" value="ScanBatch_Barcode" :label="$t('message.autotrans._Enum_TagDefineEnum_ScanBatch_Barcode')"></el-option>
               <el-option key="TakePartIn_Sign" value="TakePartIn_Sign" :label="$t('message.autotrans._Enum_TagDefineEnum_TakePartIn_Sign')"></el-option>
               <el-option key="TakePartIn_SN" value="TakePartIn_SN" :label="$t('message.autotrans._Enum_TagDefineEnum_TakePartIn_SN')"></el-option>
               <el-option key="SpotCheck_Sign" value="SpotCheck_Sign" :label="$t('message.autotrans._Enum_TagDefineEnum_SpotCheck_Sign')"></el-option>
               <el-option key="SpotCheck_01_Sign" value="SpotCheck_01_Sign" :label="$t('message.autotrans._Enum_TagDefineEnum_SpotCheck_01_Sign')"></el-option>
               <el-option key="SpotCheck_02_Sign" value="SpotCheck_02_Sign" :label="$t('message.autotrans._Enum_TagDefineEnum_SpotCheck_02_Sign')"></el-option>
               <el-option key="SpotCheck_Barcode" value="SpotCheck_Barcode" :label="$t('message.autotrans._Enum_TagDefineEnum_SpotCheck_Barcode')"></el-option>
               <el-option key="PLC_Heartbeat" value="PLC_Heartbeat" :label="$t('message.autotrans._Enum_TagDefineEnum_PLC_Heartbeat')"></el-option>
               <el-option key="Parameter" value="Parameter" :label="$t('message.autotrans._Enum_TagDefineEnum_Parameter')"></el-option>
               <el-option key="Result" value="Result" :label="$t('message.autotrans._Enum_TagDefineEnum_Result')"></el-option>
               <el-option key="RealTimeData" value="RealTimeData" :label="$t('message.autotrans._Enum_TagDefineEnum_RealTimeData')"></el-option>
            </el-select>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="DataType_FormItem" prop="DataType" :label="$t('message.autotrans._Model_EquipmentTag_DataType')">
            <el-select v-model="searchDataEquipmentTag.DataType" clearable>
               <el-option key="Sys_Bit" value="Sys_Bit" :label="$t('message.autotrans._Enum_TagDataTypeEnum_Sys_Bit')"></el-option>
               <el-option key="Sys_Byte" value="Sys_Byte" :label="$t('message.autotrans._Enum_TagDataTypeEnum_Sys_Byte')"></el-option>
               <el-option key="Sys_Word" value="Sys_Word" :label="$t('message.autotrans._Enum_TagDataTypeEnum_Sys_Word')"></el-option>
               <el-option key="Sys_DWord" value="Sys_DWord" :label="$t('message.autotrans._Enum_TagDataTypeEnum_Sys_DWord')"></el-option>
               <el-option key="Sys_Int" value="Sys_Int" :label="$t('message.autotrans._Enum_TagDataTypeEnum_Sys_Int')"></el-option>
               <el-option key="Sys_DInt" value="Sys_DInt" :label="$t('message.autotrans._Enum_TagDataTypeEnum_Sys_DInt')"></el-option>
               <el-option key="Sys_Real" value="Sys_Real" :label="$t('message.autotrans._Enum_TagDataTypeEnum_Sys_Real')"></el-option>
               <el-option key="Sys_LReal" value="Sys_LReal" :label="$t('message.autotrans._Enum_TagDataTypeEnum_Sys_LReal')"></el-option>
               <el-option key="Sys_String" value="Sys_String" :label="$t('message.autotrans._Enum_TagDataTypeEnum_Sys_String')"></el-option>
            </el-select>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="ScanRate_FormItem" prop="ScanRate" :label="$t('message.autotrans._Model_EquipmentTag_ScanRate')">
            <el-input v-model="searchDataEquipmentTag.ScanRate" clearable></el-input>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="GroupType_FormItem" prop="GroupType" :label="$t('message.autotrans._Model_EquipmentTag_GroupType')">
            <el-select v-model="searchDataEquipmentTag.GroupType" clearable>
               <el-option key="Entry" value="Entry" :label="$t('message.autotrans._Enum_TagGroupEnum_Entry')"></el-option>
               <el-option key="Archive" value="Archive" :label="$t('message.autotrans._Enum_TagGroupEnum_Archive')"></el-option>
               <el-option key="Rewrok" value="Rewrok" :label="$t('message.autotrans._Enum_TagGroupEnum_Rewrok')"></el-option>
               <el-option key="NG" value="NG" :label="$t('message.autotrans._Enum_TagGroupEnum_NG')"></el-option>
               <el-option key="None" value="None" :label="$t('message.autotrans._Enum_TagGroupEnum_None')"></el-option>
            </el-select>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="AccessMode_FormItem" prop="AccessMode" :label="$t('message.autotrans._Model_EquipmentTag_AccessMode')">
            <el-select v-model="searchDataEquipmentTag.AccessMode" clearable>
               <el-option key="Read" value="Read" :label="$t('message.autotrans._Enum_TagAccessModeEnum_Read')"></el-option>
               <el-option key="Write" value="Write" :label="$t('message.autotrans._Enum_TagAccessModeEnum_Write')"></el-option>
               <el-option key="ReadWrite" value="ReadWrite" :label="$t('message.autotrans._Enum_TagAccessModeEnum_ReadWrite')"></el-option>
            </el-select>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="UpLimit_FormItem" prop="UpLimit" :label="$t('message.autotrans._Model_EquipmentTag_UpLimit')">
            <el-input v-model="searchDataEquipmentTag.UpLimit" clearable></el-input>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="LowerLimit_FormItem" prop="LowerLimit" :label="$t('message.autotrans._Model_EquipmentTag_LowerLimit')">
            <el-input v-model="searchDataEquipmentTag.LowerLimit" clearable></el-input>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="Active_FormItem" prop="Active" :label="$t('message.autotrans._Model_EquipmentTag_Active')">
            <el-select v-model="searchDataEquipmentTag.Active" clearable>
               <el-option :key="1" :value=true :label="$t('message._system.common.vm.tips_bool_true')"></el-option>
               <el-option :key="0" :value=false :label="$t('message._system.common.vm.tips_bool_false')"></el-option>
            </el-select>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="ActiveLimit_FormItem" prop="ActiveLimit" :label="$t('message.autotrans._Model_EquipmentTag_ActiveLimit')">
            <el-select v-model="searchDataEquipmentTag.ActiveLimit" clearable>
               <el-option :key="1" :value=true :label="$t('message._system.common.vm.tips_bool_true')"></el-option>
               <el-option :key="0" :value=false :label="$t('message._system.common.vm.tips_bool_false')"></el-option>
            </el-select>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="CreateTime_FormItem" prop="CreateTime" :label="$t('message.autotrans._Model_EquipmentTag_CreateTime')">
            <el-date-picker v-model="searchDataEquipmentTag.CreateTime" type='daterange' clearable></el-date-picker>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="UpdateTime_FormItem" prop="UpdateTime" :label="$t('message.autotrans._Model_EquipmentTag_UpdateTime')">
            <el-date-picker v-model="searchDataEquipmentTag.UpdateTime" type='daterange' clearable></el-date-picker>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="CreateBy_FormItem" prop="CreateBy" :label="$t('message.autotrans._Model_EquipmentTag_CreateBy')">
            <el-input v-model="searchDataEquipmentTag.CreateBy" clearable></el-input>
        </el-form-item>

        </el-col>
        <el-col :xs="24" :lg="8" class="mb20">
        <el-form-item ref="UpdateBy_FormItem" prop="UpdateBy" :label="$t('message.autotrans._Model_EquipmentTag_UpdateBy')">
            <el-input v-model="searchDataEquipmentTag.UpdateBy" clearable></el-input>
        </el-form-item>

        </el-col>
      </el-row>

  </WtmSearcher>

  <div style="text-align: right;">
      <WtmButton v-auth="'/api/EquipmentManagement/EquipmentTag/Create'" icon='fa fa-plus' type='primary' :button-text="$t('message.autotrans.SysCreate')" @click="OnCreateClick()"/>
    <WtmButton v-auth="'/api/EquipmentManagement/EquipmentTag/BatchDelete'"  icon='fa fa-trash' type='danger' :button-text="$t('message.autotrans.SysDelete')" :confirm="$t('message._system.common.vm.deletetip')" @click="onBatchDelete()"/>
    <WtmButton v-auth="'/api/EquipmentManagement/EquipmentTag/BatchEdit'" icon='fa fa-pencil-square' type='primary' :button-text="$t('message.autotrans.SysBatchEdit')" @click="OnBatchEditClick()"/>
    <WtmButton v-auth="'/api/EquipmentManagement/EquipmentTag/Import'" icon='fa fa-tasks' type='primary' :button-text="$t('message.autotrans.SysImport')" @click="OnImportClick()"/>
    <WtmButton v-auth="'/api/EquipmentManagement/EquipmentTag/EquipmentTagExportExcel'"  icon='fa fa-arrow-circle-down' type='primary' :button-text="$t('message.autotrans.SysExport')" @click="onExport()"/>

  </div>
  <WtmTable ref="tableRefEquipmentTag" v-bind="tableDataEquipmentTag">
    <template #operation>
      <el-table-column :label="$t('message._system.common.vm.operate')" width="180">
        <template v-slot="scope">
            <WtmButton v-auth="'/api/EquipmentManagement/EquipmentTag/Edit'" :is-text="true" icon='fa fa-pencil-square' type='warning' :button-text="$t('message.autotrans.SysEdit')" @click="OnEditrowClick(scope.row)"/>
          <WtmButton v-auth="'/api/EquipmentManagement/EquipmentTag/{id}'" :is-text="true" icon='fa fa-info-circle' type='info' :button-text="$t('message.autotrans.Page详情')" @click="OnDetailsrowClick(scope.row)"/>
          <WtmButton v-auth="'/api/EquipmentManagement/EquipmentTag/BatchDelete'"  icon='fa fa-trash' type='danger' :button-text="$t('message.autotrans.SysDelete')" :confirm="$t('message._system.common.vm.deletetip')" :is-text="true"  @click="onDelete(scope.row)"/>

        </template>
      </el-table-column>
    </template>
  </WtmTable>

</el-card>
</div>
</template>


<script setup lang="ts" name="message.autotrans._PageEquipmentManagementEquipmentTagIndex;true;Digitalmes.EquipmentManagement.Controllers;EquipmentTag">
import {  ElMessageBox, ElMessage,ElLoading } from 'element-plus';
import { defineAsyncComponent,reactive, ref, getCurrentInstance, onMounted, nextTick } from 'vue';
import { equipmenttagApi } from '/@/api/equipmentmanagement/equipmenttag';
import other from '/@/utils/other';
import fileApi from '/@/api/file';
import { useRouter } from "vue-router";
const ci = getCurrentInstance() as any;

const CreateDialog = defineAsyncComponent(() => import('./create.vue'));
const EditDialog = defineAsyncComponent(() => import('./edit.vue'));
const DetailsDialog = defineAsyncComponent(() => import('./details.vue'));
const BatchEditDialog = defineAsyncComponent(() => import('./batchedit.vue'));
const ImportDialog = defineAsyncComponent(() => import('./import.vue'));

const stateEquipmentTag = reactive({
    
    AllEquipments: [] as any[],
});

const searchDataEquipmentTag = ref({
        EquipmentId: null,
        EquipCode: '',
        DriverType: undefined,
        TagName: '',
        Address: '',
        Description: '',
        TagType: undefined,
        DataType: undefined,
        ScanRate: null,
        GroupType: undefined,
        AccessMode: undefined,
        UpLimit: null,
        LowerLimit: null,
        Active: undefined,
        ActiveLimit: undefined,
        CreateTime: undefined,
        UpdateTime: undefined,
        CreateBy: '',
        UpdateBy: '',
});

// 定义变量内容
const tableRefEquipmentTag = ref();
const tableDataEquipmentTag = ref({
    // 列表数据（必传）
    data: [],
	// 表头内容（必传，注意格式）
	header: [
      {title:ci.proxy.$t('message.autotrans.Page关联设备'),key: 'EquipmentTag_Equipment',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page设备编码'),key: 'EquipmentTag_EquipCode',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page驱动类型'),key: 'EquipmentTag_DriverType',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page变量名称'),key: 'EquipmentTag_TagName',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans._AdminAddress'),key: 'EquipmentTag_Address',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page描述'),key: 'EquipmentTag_Description',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page变量类型'),key: 'EquipmentTag_TagType',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page数据类型'),key: 'EquipmentTag_DataType',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page扫描速率'),key: 'EquipmentTag_ScanRate',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page信号组'),key: 'EquipmentTag_GroupType',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page访问模式'),key: 'EquipmentTag_AccessMode',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page上限'),key: 'EquipmentTag_UpLimit',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page下限'),key: 'EquipmentTag_LowerLimit',type: 'text',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page激活'),key: 'EquipmentTag_Active',type: 'switch',isCheck: true},
      {title:ci.proxy.$t('message.autotrans.Page激活上下限'),key: 'EquipmentTag_ActiveLimit',type: 'switch',isCheck: true},
    //   {title:ci.proxy.$t('message.autotrans._AdminCreateTime'),key: 'EquipmentTag_CreateTime',type: 'text',isCheck: true},
    //   {title:ci.proxy.$t('message.autotrans._AdminUpdateTime'),key: 'EquipmentTag_UpdateTime',type: 'text',isCheck: true},
    //   {title:ci.proxy.$t('message.autotrans._AdminCreateBy'),key: 'EquipmentTag_CreateBy',type: 'text',isCheck: true},
    //   {title:ci.proxy.$t('message.autotrans._AdminUpdateBy'),key: 'EquipmentTag_UpdateBy',type: 'text',isCheck: true},

	],
	// 配置项（必传）
	config: {
        total: 0, // 列表总数
		loading: true, // loading 加载
		isSerialNo: true, // 是否显示表格序号
		isSelection: true, // 是否显示表格多选
		isOperate: true, // 是否显示表格操作栏
	}
});
// 初始化表格数据
const getTableDataEquipmentTag = () => {
    tableRefEquipmentTag.value.doSearch(equipmenttagApi().search, searchDataEquipmentTag.value)
        .catch((error: any) => {
			other.setFormError(ci, error);
		});
};
const OnCreateClick = () => {
    other.openDialog(ci.proxy.$t('message.autotrans.SysCreate'), CreateDialog, null, getTableDataEquipmentTag)
};

const OnEditrowClick = (row: any) => {
    other.openDialog(ci.proxy.$t('message.autotrans.SysEdit'), EditDialog, row, getTableDataEquipmentTag)
};

const OnDetailsrowClick = (row: any) => {
    other.openDialog(ci.proxy.$t('message.autotrans.Page详情'), DetailsDialog, row, getTableDataEquipmentTag)
};

// 删除
const onDelete = (row: any) => {
    equipmenttagApi().delete([row.ID]).then(() => { getTableDataEquipmentTag()})
};

const onBatchDelete = () => {
    const selectedrows = tableRefEquipmentTag.value.getSelectedRows();
    const selectedids = selectedrows.map((x: any) => x.ID);
    if (selectedids.length > 0)
      equipmenttagApi().delete(selectedids).then(() => { getTableDataEquipmentTag()})
    else
      ElMessage.error(ci.proxy.$t('message._system.common.vm.check'));
};

const OnBatchEditClick = () => {
    const selectedrows = tableRefEquipmentTag.value.getSelectedRows();
    const selectedids = selectedrows.map((x: any) => x.ID);
    if (selectedids.length > 0)
      other.openDialog(ci.proxy.$t('message.autotrans.SysBatchEdit'), BatchEditDialog, selectedids, getTableDataEquipmentTag)
    else
      ElMessage.error(ci.proxy.$t('message._system.common.vm.check'));
};

const OnImportClick = () => {
    other.openDialog(ci.proxy.$t('message.autotrans.SysImport'), ImportDialog, null, getTableDataEquipmentTag)
};

const onExport = () => {
	const selected = tableRefEquipmentTag.value.getSelectedRows();
	if (selected.length > 0) {
		equipmenttagApi().exportById(selected.map((x: any) => x.ID));
	}
	else {
		 equipmenttagApi().export(searchDataEquipmentTag.value);
	}
};

// 页面加载时
onMounted(() => {
    
    other.getSelectList('/api/EquipmentManagement/EquipmentTag/GetEquipments',[],false).then(x=>{stateEquipmentTag.AllEquipments = x});
        getTableDataEquipmentTag();

});

// 暴露变量
defineExpose({

});
</script>

<style scoped lang="scss">

</style>

